import request from './request.js'

const home = {
	//首页
	getHome(data) {
		return request.get('/api/v1/order/home', {
			data
		})
	},
	//小样预览
	getGoodsListByEquipmentNo(data) {
		return request.get('/api/v1/goods/getGoodsListByEquipmentNo', {
			data
		})
	},
	//设备列表
	getDeviceList(data) {
		return request.get('/api/v1/device/getDeviceList', {
			data
		})
	},
	//货道管理
	getDeviceChannal(data) {
		return request.get('/api/v1/device/getDeviceChannal', {
			data
		})
	},
	//一键补齐最大库存
	stockDeviceChannal(data) {
		return request.get('/api/v1/device/stockDeviceChannal', {
			data
		})
	},
	//编辑货道
	editDeviceChannal(data) {
		return request.post('/api/v1/device/editDeviceChannal', data)
	},
	//货道详情获取
	getDeviceChannalInfo(data) {
		return request.get('/api/v1/device/getDeviceChannalInfo', {
			data
		})
	},
	//筛选区域获取
	getCityDeviceByUser(data) {
		return request.get('/api/v1/device/getCityDeviceByUser', {
			data
		})
	},
	//订单列表
	getOrderList(data) {
		return request.get('/api/v1/order/getOrderList', {
			data
		})
	},
	//订单详情
	getOrderInfo(data) {
		return request.get('/api/v1/order/getOrderInfo', {data})
	},
	//设备信息编辑
	editDeviceInfo(data) {
		return request.post('/api/v1/device/editDeviceInfo', data)
	},
	//设备信息获取
	getDeviceInfo(data) {
		return request.get('/api/v1/device/getDeviceInfo', {data})
	},
	//设备登录密码获取
	viewDevicePassword(data) {
		return request.get('/api/v1/device/viewDevicePassword', {data})
	},
	//微信授权
	wxAuth(data) {
		return request.post('/api/v1/agent/Auth', data)
	},
}
export default home
